/*
 * Created on 2005-8-9
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package nc.tb.pub.exception;

import nc.tb.form.UAPParameterCache;
import nc.ui.bank_cvp.compile.registry.VariableNotFoundException;
import nc.vo.pub.BusinessException;

/**
 * @author tzj
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class PlanNotFoundException extends BusinessException {
	/**
	 * 
	 */
	public PlanNotFoundException() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param s
	 */
	public PlanNotFoundException(String s) {
		super(s);
		// TODO Auto-generated constructor stub
	}
	public static BusinessException getTranedException(String s){
		if(UAPParameterCache.isPlnNotFoundReturnZero())
			return new VariableNotFoundException(s);
		else
			return new PlanNotFoundException(s);
	}
}
